package com.kxxnzstdsw.plugins

import com.kxxnzstdsw.router.account
import com.kxxnzstdsw.router.static
import com.kxxnzstdsw.router.system
import com.kxxnzstdsw.router.test
import io.ktor.server.application.*
import io.ktor.server.plugins.openapi.*
import io.ktor.server.plugins.swagger.*
import io.ktor.server.routing.*

fun Application.configureRouting() {
  routing {
    openAPI(path = "openapi")
    swaggerUI(path = "swagger")
    static()
  }
  routing {
    route("/api/v1") {
      account()
      test()
      system()
    }
  }
}
